package org.xxx.epms.result.feign;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.xxx.epms.result.dto.MonitorDto;
import org.xxx.epms.result.feign.handler.MonitorFeignHandler;

@FeignClient(value = "epms-monitor",fallback = MonitorFeignHandler.class)
@Component
public interface MonitorFeign {

    @GetMapping("monitor/getMonitorInfo")
    String getMonitorInfo(@RequestParam(value = "userId") String userId);

    @GetMapping("monitor/getMonitorInfoByTel")
    MonitorDto getMonitorInfoByTel(@RequestParam(value = "monTel") String monTel);

    @GetMapping("monitor/getMonitorByMonId")
    MonitorDto getMonitorByMonId(@RequestParam(value = "monId") String monId);
}